import { ElMessage, ElMessageBox } from 'element-plus'
const confirm = (message, okFun) => {
  ElMessageBox.confirm(message, '提示', {
    confirmButtonText: "确定",
    cancelButtonText: "取消",
    type: "info",
  })
    .then(() => {
      okFun();
    })
    .catch(() => {});
};

export default confirm;
